<div class="admin-content" id="accordion">
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">代金券</strong> / <small>Tickets</small>
		</div>
	</div>

	<hr />

	<div class="am-g" ng-model="nproduct">
		<form name="formName">
			<div class="am-u-sm-12 am-u-md-8">
				<div class="am-form am-form-horizontal">
					<div class="am-form-group">
						<label class="am-form-label am-fl am-cf"> 代金券码：</label>
						<div class="am-u-sm-9">
							<input required data-ng-model="code" placeholder="请输入代金券" type="text">
						</div>
						<button class="am-btn am-btn-primary am-form-label" data-ng-click="check(code);">确定</button>
					</div>
				</div>
			</div>
		</form>
	</div>

	<div data-ng-show="shows">
		<div class="am-cf am-padding">
			<hr />
			<div class="am-fl am-cf">
				<strong class="am-text-primary am-text-lg">订单</strong> / <small>List</small>
			</div>
		</div>
		<form data-ng-model="order">
			<div class="am-u-sm-12 am-u-md-8">
				<div class="am-form am-form-horizontal">
					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">订单ID：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled data-ng-model="order.uuid" type="text" class="am-input-sm">
						</div>
					</div>

					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">用户名：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled data-ng-model="order.user.name" type="text" class="am-input-sm">
						</div>
					</div>

					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">订单描述：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled data-ng-model="order.description" type="text" class="am-input-sm">
						</div>
					</div>


					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">支付时间：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled value="{{ order.postTime | date : 'yyyy-MM-dd HH:mm:ss' }}" type="text" class="am-input-sm">
						</div>
					</div>

					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">历史打折：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled value="{{ order.discount? order.discount:'无'  }}" type="text" class="am-input-sm">
						</div>
					</div>

					<div class="am-g am-margin-top-sm">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">总价：</div>
						<div class="am-u-sm-8 am-u-md-4 am-u-end">
							<input disabled value="{{ order.money }} 元" type="text" class="am-input-sm">
						</div>
					</div>


					<hr />
					
					<div class="am-g">
						<div class="am-u-sm-4 am-u-md-3 am-text-right">
							<button class="am-btn am-btn-primary am-form-label" ng-click="delivery(order);">提货</button>
						</div>
					</div>
					
				</div>
			</div>
		</form>


	</div>

</div>